// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'BatchID',
        footer: "Foots",
        cnName: '作业批次',
        name: 'productionbatches',
        newTabEdit: false,
        url: "/productionbatches/",
        sortName: "BatchID"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {};
    const editFormOptions = [];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'BatchID',title:'主键，自增ID',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'BatchCode',title:'批次编码',type:'string',width:120,align:'left'},
                       {field:'OrderID',title:'订单ID，外键关联生产订单表',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductID',title:'产品ID，外键关联产品表',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'StartPartNum',title:'起始件号',type:'int',width:120,align:'left'},
                       {field:'Quantity',title:'投产数量',type:'decimal',width:110,require:true,align:'left'},
                       {field:'FinishQuantity',title:'完工数量',type:'decimal',width:110,require:true,align:'left'},
                       {field:'Operators',title:'操作人员',type:'string',width:110,align:'left'},
                       {field:'Status',title:'订单状态 -1作废0创建1执行2暂停3完成',type:'int',width:110,require:true,align:'left'},
                       {field:'OldBatchCode',title:'旧的批次号',type:'string',width:120,align:'left'},
                       {field:'StartDate',title:'开始时间，默认当前时间',type:'datetime',width:110,require:true,align:'left'},
                       {field:'EndDate',title:'结束时间',type:'datetime',width:110,align:'left'},
                       {field:'Memo',title:'备注',type:'string',width:150,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}